package com.qyhl.webtv.module_microvideo.shortvideo.home;


import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoBean;

import java.util.List;

public class ShortVideoHomePresenter implements ShortVideoHomeContract.ShortVideoHomePresenter {
    private ShortVideoHomeContract.ShortVideoHomeView mView;
    private ShortVideoHomeModel mModel;

    ShortVideoHomePresenter(ShortVideoHomeContract.ShortVideoHomeView mView) {
        this.mView = mView;
        this.mModel = new ShortVideoHomeModel(this);
    }

    @Override
    public void getData(String actId, String page) {
        mModel.getData(actId, page);
    }

    @Override
    public void setData(List<ShortVideoBean> beanList, boolean isMore) {
        mView.setData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
